package com.rd.student.dashuju.sunwenzhuo.Test2;

import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {

        System.out.println("请输入金字塔层数");
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        for (int i = 1; i <= num; i++) {

            for (int j = i; j < num; j++) {
                System.out.print("\t");
            }

            for (int j = i; j >= 1; j--) {
                System.out.print(j + "\t");
            }
            for (int k = 2; k <= i; k++) {
                System.out.print(k + "\t");
            }
            System.out.println();
        }

    }
}
